package com.yonyou.pmclouds.repeatwork.service.rmiitf;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.repeatwork.entity.RepeatWorkVO;

/**
 * 复工单接口
 */
public interface IRepeatWorkMaintain {
    /**
     * 新增复工单
     * @param repeatWorkVO
     * @return
     * @throws BusinessException
     */
    RepeatWorkVO add (RepeatWorkVO repeatWorkVO) throws BusinessException;

    /**
     * 修改复工单
     * @param repeatWorkVO
     * @return
     * @throws BusinessException
     */
    RepeatWorkVO update (RepeatWorkVO repeatWorkVO) throws BusinessException;

    /**
     * 审批复工单
     * @param pkRepeatwork
     * @param billStatus
     * @return
     * @throws BusinessException
     */
    RepeatWorkVO approve(String pkRepeatwork,byte billStatus) throws BusinessException;

    /**
     * 驳回复工单
     * @param pkRepeatwork
     * @return
     * @throws BusinessException
     */
    RepeatWorkVO reject(String pkRepeatwork) throws BusinessException;
}
